//
//  RBMsgTransactionCell.m
//  zhongzhenglu
//
//  Created by XL on 2022/7/14.
//

#import "RBMsgTransactionCell.h"
#import "UIView+RBAdd.h"
#import "RBMsgSubResponse.h"
#import "UIImageView+RBAdd.h"

@interface RBMsgTransactionCell()

@property(nonatomic, strong)IBOutlet UILabel *timeL;
@property(nonatomic, strong)IBOutlet UIView *orgView;
@property(nonatomic, strong)IBOutlet UIImageView *orgImgView;
@property(nonatomic, strong)IBOutlet UILabel *orgNameL;
@property(nonatomic, strong)IBOutlet UILabel *statusTitleL;
@property(nonatomic, strong)IBOutlet UIImageView *statusImgView;
@property(nonatomic, strong)IBOutlet UILabel *statusDesL;

@end

@implementation RBMsgTransactionCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self.contentView zoomSubViewsWithSelf];
    [self.orgView rbAddTapGesWithTarget:self action:@selector(orgViewTapped)];
}

- (void)orgViewTapped
{
    
}

- (void)setCellModel:(RBCellModel *)cellModel
{
    RBMsgSubModel *model = cellModel.cellData;
    self.timeL.text = model.create_time;
    [self.orgImgView setImageWithUrl:model.logo placeHolder:nil];
    self.orgNameL.text = model.store_name;
    self.statusTitleL.text = model.title;
    self.statusDesL.text = model.content;
    [self.statusImgView setImageWithUrl:model.picurl placeHolder:nil];
}

@end
